﻿@{
    ViewBag.Title = "我发布的留言";
    Layout = "~/Views/Shared/_LayoutDualColumns.cshtml";
}

@using Global.Core.ExtensionMethod
@model Ducu.SRV.ViewModel.Message.IndexModel

@section PageHeader{
    <span class="glyphicon glyphicon-bell" aria-hidden="true"></span><span class="after-glyphicon">@ViewBag.Title</span>
}

@if (Model.Items.IsNullOrEmpty())
{
    <div>你还没有发布任何留言。</div>
}
else
{
    foreach (var item in Model.Items)
    {
        string unread_class = item.HasRead ? "panel-default" : "panel-primary";
        <div class="panel @unread_class">
            <div class="panel-heading">
                <span class="glyphicon glyphicon-comment"></span><span style="margin-left: 10px;">@item.CreateTime.ToChinese()</span>
            </div>
            <div class="panel-body">
                @Html.Raw(item.Content)
            </div>
        </div>
    }
}


@section RightPanel{
    <li>
        本页显示的是你给被人的留言。
    </li>
    <li>
        系统只保留最近100条消息。但和目标/任务相关的留言等内容不会被删除，仍然可以在各目标的<a>任务完成情况</a> 中看到。
    </li>
}
